<?php
$change = $_POST['change'];
$id = $_POST['id'];

$conn = new mysqli("localhost", "root", "", "simple_weibo");
$conn->query("set names 'utf8'");

$sql = "update weibo_list set weibo_hot = ".$change." where weibo_id = ".$id."";
$res = $conn->query($sql);

if($res){
    echo "修改热度成功";
}else{
    echo "修改热度失败";
}